package com.easyweb.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easyweb.dao.GalleryDao;
import com.easyweb.model.Gallery;
import com.easyweb.service.GalleryService;

@Service
public class GalleryServiceImpl implements GalleryService{

	@Autowired
	private GalleryDao galleryDao;
	
	public int insertGallery(Gallery gallery) {
		return galleryDao.insertGallery(gallery);
	}

	public int deleteGalleryById(Map<String, Object> map) {
		return galleryDao.deleteGalleryById(map);
	}

	public int updateGallery(Gallery gallery) {
		return galleryDao.updateGallery(gallery);
	}

	public List<Gallery> getGallerys(Map<String, Object> map) {
		return galleryDao.getGallerys(map);
	}

	public Gallery getGalleryById(Map<String, Object> map) {
		return galleryDao.getGalleryById(map);
	}

}
